#ifndef __UP_I2C_H__
#define __UP_I2C_H__
#include "UP_config.h"

void I2C_init(uint32_t i2c, uint32_t addr);

void I2C_init_with_params(uint32_t i2c, uint32_t addr, UP_I2C_PARAMS *params);

void I2C_write(uint32_t i2c, uint32_t addr,
                      uint8_t dat, uint8_t mode);

void I2C_write_array(uint32_t i2c, uint32_t addr,
                            uint8_t array[][8], uint8_t len, uint8_t num);

#endif // !__UP_I2C_H__